package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;


public interface IUserService {

    void saveOrUpdate(User user);

    User login(String email, String password);

    PageInfo<User> query(QueryObject qo);

    User queryById(Long id);

    List<User> queryAll();
}
